from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^goods/price/update/$', views.UpdatePrice.as_view(), name='update_price'),  # 我买网商品更新价格
    url(r'^h5pay/$', views.PayViewSet.as_view(), name='h5pay'),  # 付款
    url(r'^wx_pay/$', views.WxPayAPIView.as_view(), name='h5pay'),  # 微信付款
    url(r'^pay_result/$', views.PayResultViewSet.as_view(), name='pay_result'),  # 支付结果查询
    # url(r'^yf', views.YFViewSet.as_view(), name='yf'),  # 运费
    url(r'^receive_h5pay', views.receive_h5pay, name='receive_h5pay'),  # 接收微信付款成功通知
    url(r'^receive_refund', views.receive_refund, name='receive_refund'),  # 接收微信退款成功通知
    url(r'^test-io', views.TestViewSet.as_view(), name='test-io'),  # 测试异步io
    url(r'^cart-delete/$', views.DeleteCartItemViewSet.as_view(), name='cart-delete'),  # 批量删除
    url(r'^center-data/$', views.CenterDataView.as_view(), name='center-data'),  # 数据中心
    url(r'^transfer/$', views.TransferViewSet.as_view(), name='transfer'),  # 提现
    # url(r'^test-income$', views.TestIncome.as_view(), name='test-income'),  # 测试收入
    url(r'^wait-pay-count/$', views.WaitPay.as_view(), name='wait-pay'),  # 代付款
    url(r'^cart/item/count/$', views.CartItemCount.as_view(), name='cart-item-count'),  # 购物车数量
    url(r'^location/$', views.GetLocation.as_view(), name='location'),  # 获取地址
    url(r'^get_province_by_city/$', views.GetProvinceByCity.as_view(), name='get_province_by_city'),  # 通过市获得省
    url(r'^test_async/$', views.test_async, name='test_async'),  # 测试异步任务
]
